<script language="javascript">
$(function(){  
	$('#sendSortID').change(function(){
		getGoodsSendTypeInfo();
	});
});

function getGoodsSendTypeInfo()
{
	$.getJSON(
		"__URL__/getSelect/type/2/sendSortID/"+ $("#sendSortID").val(),
		function(json)
		{         
			var sendTypeID = $("#sendTypeID");         
			$("option",sendTypeID).remove();   
			$.each(json,function(index,array)
			{             
				var option = "<option value='"+array['id']+"'>"+array['title']+"</option>";
				sendTypeID.append(option);         
			});     
		}
	); 
}
</script>

<div class="page">
	<div class="pageContent">
	
	<form method="post" action="__URL__/update/navTabId/{$Think.const.MODULE_NAME}" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="id" value="{$vo.id}" /> 
		<input type="hidden" name="customID" value="{$customId}" >
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<label>收货人：</label>
				<input type="text" class="required" size="10" maxlength="20" name="recName" value="{$vo.recName}" />
			
				<label>付款人：</label>
				<input type="text" name="payName" size="10" class="required" maxlength="150" value="{$vo.payName}"/>
			</div>
			<div class="unit">
				<label>电话：</label>
				<input type="text" size="10" maxlength="20" name="tel" value="{$vo.tel}" />
			
				<label>手机：</label>
				<input type="text" size="10" maxlength="20" name="phone" value="{$vo.phone}"/>
			</div>
			<div class="unit">
				<label>备用电话：</label>
				<input type="text" size="10" maxlength="20" name="spareTel" value="{$vo.spareTel}" />
			
				<label>传真：</label>
				<input type="text" size="10" maxlength="20" name="fax" value="{$vo.fax}"/>
			</div>
			<div class="unit">
				<label>地址：</label>
				<input type="text" name="address" size="30" maxlength="200" value="{$vo.address}" />
			</div>
			<div class="unit">
				<label>邮编：</label>
				<input type="text" name="zipCode" size="10" maxlength="20" value="{$vo.zipCode}" />
			
				<label>省份：</label>
				<select name="provinceID" id="provinceID">
						<option value="">--请选择--</option>
					<volist name="ProvinceList" id="ProvinceVo">
						<option <eq name="vo.provinceID" value="$ProvinceVo.id" >selected</eq> value="{$ProvinceVo.id}">{$ProvinceVo.name}</option>
					</volist>
				</select>
			</div>
			<div class="unit">
				<label>所属县市区：</label>
				<input type="text" name="cityName" size="30" value="{$vo.cityName}" maxlength="150"/>
			</div>			
			<div class="unit">
				
				<label>发货类型：</label>
				<select name="sendSortID" id="sendSortID">
						<option value="">--请选择--</option>
					<volist name="SendGoodsSortList" id="SendGoodsSortVo">
						<option <eq name="vo.sendSortID" value="$SendGoodsSortVo.id" >selected</eq> value="{$SendGoodsSortVo.id}">{$SendGoodsSortVo.name}</option>
					</volist>
				</select>
				<label>发货方式：</label>
				<select  name="sendTypeID" id="sendTypeID">
						<option value="">--请选择--</option>
					<volist name="SendGoodsTypeList" id="SendGoodsTypeVo">
						<option <eq name="vo.sendTypeID" value="$SendGoodsTypeVo.id" >selected</eq> value="{$SendGoodsTypeVo.id}">{$SendGoodsTypeVo.name}</option>
					</volist>
				</select>			
			</div>
			<div class="unit">
				<label>发货周期：</label>
				<select name="sendOrderCyleID" id="sendOrderCyleID">
						<option value="">--请选择--</option>
					<volist name="SendOrderCyleList" id="SendOrderCyleVo">
						<option <eq name="vo.sendOrderCyleID" value="$SendOrderCyleVo.id" >selected</eq> value="{$SendOrderCyleVo.id}">{$SendOrderCyleVo.name}</option>
					</volist>
				</select>
			
				<label>包装方式：</label>
				<input type="text" name="packetType" size="10" maxlength="150" value="{$vo.packetType}"/>
			</div>
			<div class="unit">
				<label>单位/学校：</label>
				<select name="schoolID" id="schoolID">
						<option value="">--请选择--</option>
					<volist name="SchoolList" id="SchoolVo">
						<option <eq name="vo.schoolID" value="$SchoolVo.id" >selected</eq> value="{$SchoolVo.id}">{$SchoolVo.name}</option>
					</volist>
				</select>
			</div>
			<div class="unit">
				<label>是否学校：</label>
				<select name="isSchool">
					<option value="">--请选择--</option>
					<option <eq name="vo.isSchool" value="1">selected</eq> value="1">是</option>
					<option <eq name="vo.isSchool" value="0">selected</eq> value="0">否</option>
				</select>
			</div>
			<div class="unit">
				<label>班级:</label>
				<textarea rows="2" cols="45" name="className" class="textInput valid">{$vo.className}</textarea>
			</div>
			<div class="unit">
				<label>备注：</label>
				<textarea rows="3" cols="45" name="memo" class="textInput valid">{$vo.memo}</textarea>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
	</div>
</div>


